XML Examples
Example with XSLT and CSS styling using inline styles
December 28th, 2017
The styleInline.xml file has the text values.
styleInline.xml
<?xml version="1.0" encoding="UTF-8"?>...
Example of Processing Instructions in XML
December 28th, 2017
1. <?xml-stylesheet href=”countryAreaStyle.css” type=”text/css” ?>
2. <?Country mapping?>
Example of a valid XML namespace
December 28th, 2017
<root xmlns:ch11="http://www.xmlLearning.com/chapter11">
<ch11:namespace>
<ch11:valid>This is valid</ch11:valid>
Example of well-formed XML elements
December 28th, 2017
<earth>
<country><b>Russia</b></country>
&nbs...
Example of non-well-formed XML elements
December 28th, 2017
<earth>
<country><b>Russia</country></b> -> Elements not nested properly
Example of well-formed XML attributes
December 28th, 2017
<earth totalArea="100">
</earth>
<div class=”style1 style2”>
</div>
Example of non well-formed XML attributes
December 28th, 2017
<earth totalArea="100" population=”100”>
</earth>
Example of well-formed XML comments
December 28th, 2017
<earth>
<!-- Contains information on countries -->
<country>Canada</cou...